package com.icesoft.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.icesoft.framework.core.annotation.Entity;
import com.icesoft.framework.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 公司
 *
 * @author ${author}
 * @date 230326
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_company")
@Entity(module = "system", describe = "公司")
public class Company extends BaseEntity {

	@TableField
	@Column(value = "name", comment = "名称", type = MySqlTypeConstant.VARCHAR)
	private String name;

	@TableField
	@Column(value = "logo", comment = "logo", type = MySqlTypeConstant.VARCHAR)
	private String logo;

	@TableField
	@Column(value = "title", comment = "title", type = MySqlTypeConstant.VARCHAR)
	private String title;

	@TableField
	@Column(value = "weixin_sign", comment = "微信原始ID", type = MySqlTypeConstant.VARCHAR)
	private String weixinSign;

	@TableField
	@Column(value = "principal_name", comment = "主体名称", type = MySqlTypeConstant.VARCHAR)
	private String principalName;

	@TableField
	@Column(value = "applet_name", comment = "小程序名称", type = MySqlTypeConstant.VARCHAR)
	private String appletName;

	@TableField
	@Column(value = "applet_img", comment = "小程序码", type = MySqlTypeConstant.VARCHAR)
	private String appletImg;

	@TableField
	@Column(value = "applet_appid", comment = "小程序appid", type = MySqlTypeConstant.VARCHAR)
	private String appletAppid;

	@TableField
	@Column(value = "applet_secret", comment = "小程序秘钥", type = MySqlTypeConstant.VARCHAR)
	private String appletSecret;

	@TableField
	@Column(value = "mch_id", comment = "商户号", type = MySqlTypeConstant.VARCHAR)
	private String mchId;

	@TableField
	@Column(value = "mch_key", comment = "APIv2密钥", type = MySqlTypeConstant.VARCHAR)
	private String mchKey;

	@TableField
	@Column(value = "key_path", comment = "API证书", type = MySqlTypeConstant.VARCHAR)
	private String keyPath;

	@TableField
	@Column(value = "general_appid", comment = "公众号appid", type = MySqlTypeConstant.VARCHAR)
	private String generalAppid;

	@TableField
	@Column(value = "general_secret", comment = "公众号秘钥", type = MySqlTypeConstant.VARCHAR)
	private String generalSecret;

	@TableField
	@Column(value = "general_token", comment = "认证的token", type = MySqlTypeConstant.VARCHAR)
	private String generalToken;

	@TableField
	@Column(value = "general_aes_key", comment = "认证的token秘钥", type = MySqlTypeConstant.VARCHAR)
	private String generalAesKey;
}
